#!/bin/bash
echo "" > result.dat
echo "#round	correct" > result.dat
cat aggregation.out | grep -h 'current time:' | cut -d ':' -f 2 | tr -d ' ' > round.txt
cat aggregation.out | grep -h 'estimated correctly:' | cut -d ':' -f 2 | tr -d ' ' > correct.txt
paste round.txt correct.txt >> result.dat
rm round.txt correct.txt aggregation.out
gnuplot -persist -e "plot 'result.dat'"
